package notes.java.sjms23.s3_factory.factorymethod;


public class FactoryMainTest {
	public static void main(String[] args) {
		
		// 只要更换相应的工厂即可
//		SenderFactory f = new MailSendFactory();
		SenderFactory f = new WeixinSendFactory();
//		SenderFactory f = new SmsSendFactory();
		Sender s = f.createSender();
		s.send();
		
	}

}
